package cn.xm.basic.mapper;

import cn.xm.basic.query.BaseQuery;
import cn.xm.org.domain.Department;
import cn.xm.org.query.DepartmentQuery;

import java.util.List;

public interface BaseMapper<T> {

    List<T> findAll();

    T findById(Long id);

    void add(T t);

    void update(T t);

    void delete(Long id);

    List<T> queryByPage(BaseQuery baseQuery);

    Long queryCount(BaseQuery baseQuery);

    void batchDelete(List<Long> ids);
}
